/************************************************************************
 *
 * limits.h
 *
 * (c) Copyright 1996-2004 Analog Devices, Inc.  All rights reserved.
 * $Revision: 1.1 $
 ************************************************************************/

#ifndef __LIMITS_DEFINED
#define __LIMITS_DEFINED

#ifdef __TS_BYTE_ADDRESS
#define CHAR_BIT        8
#else
#define CHAR_BIT        32
#endif

#define MB_LEN_MAX      1
#ifdef __TS_BYTE_ADDRESS
#define CHAR_MIN        (-127-1)
#define CHAR_MAX        127
#define SCHAR_MIN       (-127-1)
#define SCHAR_MAX       127
#define UCHAR_MAX       255
#define SHRT_MIN        (-32767-1)
#define SHRT_MAX        32767
#define USHRT_MAX       65535
#else
#define CHAR_MIN        (-2147483647-1)
#define CHAR_MAX        2147483647
#define SCHAR_MIN       (-2147483647-1)
#define SCHAR_MAX       2147483647
#define UCHAR_MAX       4294967295u
#define SHRT_MIN        (-2147483647-1)
#define SHRT_MAX        2147483647
#define USHRT_MAX       4294967295u
#endif
#define INT_MIN         (-2147483647-1)
#define INT_MAX         2147483647
#define UINT_MAX        4294967295u
#define LONG_MIN        (-2147483647-1)
#define LONG_MAX        2147483647
#define ULONG_MAX       4294967295u
#define LLONG_MAX       0x7FFFFFFFffffffffll
#define LLONG_MIN       (-0x7FFFFFFFffffffffll - 1)
#define ULLONG_MAX      0xFFFFFFFFffffffffllu 
#define LONGLONG_MAX    LLONG_MAX
#define LONGLONG_MIN    LLONG_MIN
#define ULONGLONG_MAX   ULLONG_MAX


#endif /* __LIMITS_DEFINED */
